package com.byxy.computer.student.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.byxy.computer.utils.excel.annotation.ExcelField;

/**
 * @author Daniel
 * @E-Mail iva0512@gmail.com
 * @Date 2016年9月25日
 */
@Entity
@Table(name = "_student")
public class Student implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4365532439435190508L;

	@Id
	@ExcelField(title = " 学号", align = 1)
	private String uid;
	@ExcelField(title = "姓名")
	@Column(length = 30)
	private String username;
	@ExcelField(title = "考勤", type = 1)
	@Column(length = 6)
	private String stats;
	@Column(length = 100)
	private String homework;
	@Column(length = 100)
	@ExcelField(title = "计算机IP", type = 1)
	private String computername;
	@Column
	@ExcelField(title = "课堂表现")
	private Integer good = 80;
	@Column
	@ExcelField(title = "作业", type = 1)
	private Integer filesize;

	public Integer getFilesize() {
		return filesize;
	}

	public void setFilesize(Integer filesize) {
		this.filesize = filesize;
	}

	public Student() {
		super();
	}

	public Student(String uid, String username) {
		super();
		this.uid = uid;
		this.username = username;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getStats() {
		return stats;
	}

	public void setStats(String stats) {
		this.stats = stats;
	}

	public String getHomework() {
		return homework;
	}

	public void setHomework(String homework) {
		this.homework = homework;
	}

	public String getComputername() {
		return computername;
	}

	public void setComputername(String computername) {
		this.computername = computername;
	}

	public Integer getGood() {
		return good;
	}

	public void setGood(Integer good) {
		this.good = good;
	}

}
